﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Component
{
    [Serializable]
    public class Point
    {
        double x;
        double y;
        Color color;
        int radius;
       

        public Point(double x, double y, Color color, int radius)
        {
            this.x = x;
            this.y = y;
            this.color = color;
            this.radius = radius;
        }

        public Point(double x, double y, Color color)
        {
            this.x = x;
            this.y = y;
            this.color = color;
            this.radius = 2;
        }

        public Point(double x, double y)
        {
            this.x = x;
            this.y = y;
            this.color = Color.Transparent;
            this.radius = 2;
        }

        public double X { get => x; set => x = value; }
        public double Y { get => y; set => y = value; }
        public Color Color { get => color; set => color = value; }
        public int Radius { get => radius; set => radius = value; }
    }
}
